package ynu.edu.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 创建订单请求DTO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderRequestDTO implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 用户ID
     */
    private String userId;
    
    /**
     * 商家ID
     */
    private Integer businessId;
    
    /**
     * 订单总金额
     */
    private BigDecimal orderTotal;
    
    /**
     * 送货地址ID
     */
    private Integer daId;
    
    /**
     * 购物车ID列表，用于创建订单时删除对应的购物车项
     */
    private List<Integer> cartIds;
    
    /**
     * 订单明细列表，包含食品ID和数量
     */
    private List<OrderItemDTO> orderDetails;
} 